﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using usedcartrade.DataAccessLayer;
using usedcartrade.ViewModels;

namespace usedcartrade.Models
{
    public class CarBusinessLayer
    {
        private UsedCarERPDAL usedcardb = new UsedCarERPDAL();

        public List<Car> GetCars()
        {
            var cars = usedcardb.cars.Include(c => c.user);
            return cars.ToList();
        }


    }
}
